/*
 * Package: org.grassfield.common.dao
 * FileName: IUserDAO.java
 *  
 * Created by pandian on Jan 28, 2011
 */
package dao;

import java.util.List;

import bean.User;



/**
 * The Interface IUserDAO.
 */
public interface IUserDAO extends IBaseDAO {
	
	/**
	 * List.
	 * 
	 * @return the list
	 */
	public List<User> list();
	
	/**
	 * Gets the user.
	 * 
	 * @param userName the user name
	 * @param password the password
	 * @return the user
	 */
	public User getUser(String userName, String password);

	/**
	 * Gets the user.
	 * 
	 * @param id the id
	 * @return the user
	 */
	public User getUser(long id);
	
	/**
	 * Adds the user.
	 * 
	 * @param user the user
	 * @return the user
	 */
	public User addUser(User user);
}
